import { Modal } from 'antd';
import React from 'react';

const ApplicationEdit = (props: { showModalVisible: boolean }) => {
  let { showModalVisible } = props;

  const handleOk = () => {
    showModalVisible = false;
  };

  const handleCancel = () => {
    showModalVisible = false;
  };
  // useEffect(() => {
  //   console.log(props.showModalVisible);
  // }, [props]);
  // const [isModalVisible, setModalVisible] = useState(false);

  // const handleOk = () => {
  //   setModalVisible(false);
  // };

  // const handleCancel = () => {
  //   setModalVisible(false);
  // };

  // useEffect(() => {
  //   console.log(props.showModalVisible);
  //   setModalVisible(props.showModalVisible);
  // }, [props]);

  // const [isModalVisible, setModalVisible] = useState(false);
  return (
    <Modal
      title="Basic Modal"
      visible={showModalVisible}
      onOk={handleOk}
      onCancel={handleCancel}>
      <p>Some contents...</p>
      <p>Some contents...</p>
      <p>Some contents...</p>
    </Modal>
  );
};

export default ApplicationEdit;
